﻿<div ng-controller="accountController" class="center-block m-b-lg" style="width: 240px;">
    <h2>登录</h2>
    <form name="_form" class="w5c-form" w5c-form-validate="model.validateOptions" role="form" novalidate>
        <div class="form-group">
            <label for="mobile">手机</label>
            <input type="text" name="mobile" class="form-control input-sm" ng-model="model.mobile" required ng-pattern="/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" name="password" class="form-control input-sm" ng-model="model.password" required ng-minlength="5" ng-maxlength="15">
        </div>
        <div class="form-group">
            <label for="code">验证码</label>
            <div class="row">
                <div class="col-md-7"><input type="text" name="code" class="form-control input-sm" ng-model="model.code" required></div>
                <div class="col-md-5"><img src="/common/verify_code" onclick="this.src='/common/verify_code?time=' + (new Date()).getTime();" /></div>
            </div>
        </div>
        <div class="checkbox">
            <label><input type="checkbox" name="remember" ng-model="model.remember"> 三天内自动登录</label>
        </div>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary btn-sm" w5c-form-submit="login()" btn-loading="psdisabled" loading-text="登录中..." ng-disabled="psdisabled">登录</button>
            <div class="pull-right input-sm"><a ui-sref="forget">忘记密码？</a></div>
        </div>
    </form>
</div>
